<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品及解决方案</title>
<link href="css/products_and_solution.css" rel="stylesheet" type="text/css" />
<link href="css/base.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="container">
<?php include 'header.php';?>

<div class="pro">
	<div class= "pro_top"><p>产品及解决方案/Products and Solution</p></div>
    <div class= "pro_left">
    	<ul>
              <?php include 'pas_db.php';?>
            <?php
           foreach($typerows as $row)
            {
            ?>            
            <a href="#"><li class="xuan"><?php echo $row['typename']?></li></a>
            <?php
            }
            ?>
             <?php include 'pas_db.php';?>
            <?php
           foreach($typenamerows as $row)
            {
            ?>            
            <a href="#"><li><?php echo $row['typename']?></li></a>
            <?php
            }
            ?>
            <!--
    		<a href="#"><li class="xuan">后背式</li></a>
          	<a href="#"><li>在线Castle系列</li></a>
            <a href="#"><li>监控产品</li></a>
            <a href="#"><li>模块化ARRAY系列</li></a>
            <a href="#"><li>配电产品</li></a>
            <a href="#"><li>地堡系列电池</li></a>
            <a href="#"><li>促销</li></a>
                <a href="#"><li>方案应用</li></a>
            -->
        </ul>
    </div>
    
   <?php
require_once "db_conn.php";//连接数据库文件名
$sql="
    SELECT *
    FROM tb_products
    ";//查找数据库的表
$result=$conn->query($sql);
$imgrows=$result->fetch_all(MYSQLI_BOTH);


?>
        
        
        
    <div class= "pro_right">
        <ul> 
            <?php
     foreach ($imgrows as $row)
     {
     ?>
    <?php  
     }
     ?>
         
         
            <li class="pro_rigpic a1"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a2"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a3"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
        </ul>
      
        <ul>
    <li class="pro_rigpic a1"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a2"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a3"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
        </ul>
        
        <ul>
        <li class="pro_rigpic a1"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a2"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a3"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
        </ul>
        
        <ul>
        <li class="pro_rigpic a1"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a2"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
           <li class="pro_rigpic a3"><a href="pro_details.php"><p><?php  echo $row['title'] ?><br/><?php  echo $row['content'] ?><br/><?php  echo $row['content1'] ?></p></a></li>
        </ul>
       <div class="pro_right_fot">
       		<a href="#"><img src="img/7.gif" width="30" height="30" /></a>
            <span>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="#"> 1 </a>      
            <a href="#"> 2 </a>     
            <a href="#"> 3 </a>
            <a href="#"> 4 </a>
            <a href="#"> ... </a>
            <a href="#"> 7 </a>
            &nbsp;&nbsp;
            </span>
            <a href="#"><img src="img/8.gif" width="31" height="29" /></a>
       </div>
   	</div>
</div>
<?php include 'footer.php';?>
</div>
</body>
</html>
